import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/goods1',
    name: 'goods1',
    component: () => import('@/views/goods1.vue')
  },
  {
    path: '/goods2',
    name: 'goods2',
    component: () => import('@/views/goods2.vue')
  },
  {
    path: '/goods3',
    name: 'goods3',
    component: () => import('@/views/goods3.vue')
  },
  {
    path: '/goods4',
    name: 'goods4',
    component: () => import('@/views/goods4.vue')
  },
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
